﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace UtilZ.Dotnet.Ex.Communication.Net.Web
{
    /// <summary>
    /// websocket消息类型
    /// </summary>
    public enum WebSocketMessageTypes
    {
        /// <summary>
        /// 二进制消息
        /// </summary>
        Text,

        /// <summary>
        /// 文本消息
        /// </summary>
        Binary,

        /// <summary>
        /// 心跳消息
        /// </summary>
        Ping,

        /// <summary>
        /// 心跳回应消息
        /// </summary>
        Pong,

        /// <summary>
        /// 关闭连接消息
        /// </summary>
        Close
    }
}
